package com.monkey.demo.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @Description: 定义一个事件
 * @Author: zhangqi
*/

@Getter
public class PersonChangeEvent extends ApplicationEvent {

    private Person person;

    private String operateType;

    public PersonChangeEvent(Person person, String operateType) {
        super(person);
        this.person = person;
        this.operateType = operateType;
    }
}
